﻿using hnrzxt.data;
using hnrzxt.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Model;
using System.Diagnostics;

namespace hnrzxt.Controllers
{
    public class HomeController : Controller
    {
        private readonly ILogger<HomeController> _logger;
        private readonly data.ApplicationDbContext _db;

        public HomeController(ILogger<HomeController> logger, ApplicationDbContext db)
        {
            _logger = logger;
            _db = db;
        }

        //getSession


        //[Authorize]
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult Privacy()
        {
            return View();
        }
        public IActionResult Getcode()
        {
            return View();
        }
        public IActionResult Hmc()
        {
            return View();
        }
        public IActionResult OrgManage()
        {
            return View();
        }
        public IActionResult OrgInfo()
        {
            return View();
        }
        public IActionResult Welcome()
        {
            return View();
        }
        public IActionResult ldht()
        {
            return View();
        }
        public IActionResult pzxx()
        {
            return View();
        }
        public IActionResult qtpx()
        {
            return View();
        }
        public IActionResult wbpx()
        {
            return View();
        }
        public IActionResult zsxx()
        {
            return View();
        }

        [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
        public IActionResult Error()
        {
            return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
        }




        public IActionResult Hmcforquery(string uuid)
        {


            ViewBag.uuid = uuid;
           
            return View();
        }
    }
}